import { ElNotification } from 'element-plus'

export const Message = (
  type: '' | 'success' | 'warning' | 'error' | 'info',
  message: string,
  duration: number,
  title?: string,
) => {
  ElNotification({
    type,
    message,
    duration,
    title,
  })
}
